package com.woniu.his.dms.client;

import com.woniu.his.dms.client.param.AddCaseModelCatalogClientParam;
import com.woniu.his.dms.client.result.CaseModelCatalogResult;
import com.woniu.his.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @version: java version 1.8
 * @Author: ZJH
 * @description:
 * @date: 2022-11-29 20:53
 */
@FeignClient(contextId = "CaseModelCatalogClient",name = "dms",path = "dms")
public interface CaseModelCatalogClient {

    /**
     * 新增病历模板目录
     * @param param
     * @return
     */
    @PostMapping("addCaseModelCatalogService")
    Result<Boolean> addCaseModelCatalogService(@RequestBody AddCaseModelCatalogClientParam param);

    /**
     * 删除病历模板目录
     * @param id
     * @return
     */
    @DeleteMapping("deleteCaseModelCatalogById")
    Result<Boolean> deleteCaseModelCatalogById(@PathVariable("id") Long id);

    /**
     * 更新病历模板目录名字
     * @param id
     * @param catalogName
     * @return
     */
    @PutMapping("updateCaseModelCatalogName")
    Result<Boolean> updateCaseModelCatalogName(@RequestParam("id") Long id,@RequestParam("catalogName") String catalogName);

    /**
     * 查询病历模板目录树
     * @return
     */
    @GetMapping("queryCaseModelCatalog")
    Result<List<CaseModelCatalogResult>> queryCaseModelCatalog();
}
